package com.story.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;

import com.story.domain.Admin;
import com.story.domain.Page;

public interface IAdminDao {
	void createAdmin(Admin admin) throws DataAccessException;
	Admin findAdminByUsername(String username) throws DataAccessException;
	Integer getTotal() throws DataAccessException;
	List<Admin> findAdminsByLimit(Page page) throws DataAccessException;
	Integer deleteAdminById(@Param("id") String id) throws DataAccessException;
	Integer deleteAdminsByIds(List<String> ids) throws DataAccessException;
}
